* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    font-weight: 300;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.visualizer-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#waveform {
    width: 100%;
    height: 200px;
    display: block;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
}

.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 107, 0.1) 25%, 
        rgba(78, 205, 196, 0.1) 50%, 
        rgba(69, 183, 209, 0.1) 75%, 
        transparent 100%);
    animation: waveShimmer 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes waveShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.control-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.control-group:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.control-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 1rem;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.value {
    font-weight: 700;
    color: #4ecdc4;
    font-size: 1.1rem;
}

.play-controls {
    text-align: center;
    margin: 3rem 0;
}

.play-button {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

.play-button.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.play-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.7rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.preset-btn:last-child {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    font-weight: bold;
    min-width: 120px;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preset-buttons {
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}